Socket
Socket
Sign inDemoInstall

@aws-sdk/credential-provider-imds

Package Overview
Dependencies
2
Maintainers
5
Versions
140
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @aws-sdk/credential-provider-imds

AWS credential provider that sources credentials from the EC2 instance metadata service and ECS container metadata service


Version published
Weekly downloads
3.2M
decreased by-14.34%
Maintainers
5
Install size
228 kB
Created
Weekly downloads
 

Changelog

Source

1.0.0-rc.10 (2020-12-15)

Bug Fixes

  • remove some s3 waiters (#1791) (6f73e9b)

Features

Readme

Source

@aws-sdk/credential-provider-imds

NPM version NPM downloads

AWS Credential Provider for Node.JS - Instance and Container Metadata

This module provides two CredentialProvider factory functions, fromContainerMetadata and fromInstanceMetadata, that will create CredentialProvider functions that read from the ECS container metadata service and the EC2 instance metadata service, respectively.

A CredentialProvider function created with fromContainerMetadata will return a promise that will resolve with credentials for the IAM role associated with containers in an Amazon ECS task. Please see IAM Roles for Tasks for more information on using IAM roles with Amazon ECS.

A CredentialProvider function created with fromInstanceMetadata will return a promise that will resolve with credentials for the IAM role associated with an EC2 instance. Please see IAM Roles for Amazon EC2 for more information on using IAM roles with Amazon EC2.

Supported configuration

You may customize how credentials are resolved by providing an options hash to the fromContainerMetadata and fromInstanceMetadata factory functions. The following options are supported:

  • timeout - The connection timeout (in milliseconds) to apply to any remote requests. If not specified, a default value of 1000 (one second) is used.
  • maxRetries - The maximum number of times any HTTP connections should be retried. If not specified, a default value of 0 will be used.

Additionally, fromInstanceMetadata supports the following options:

  • profile - The configuration profile to use. If not specified, the provider will use default profile name associated with the EC2 instance as reported by the Instance Metadata Service.

Keywords

FAQs

Last updated on 15 Dec 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc